﻿<div class="span10">
	<h1>Buscar Reserva</h1>
	<?php echo Flash::render(); ?>
	<?php echo Form::open('reserva/buscar', array('id' => 'reserva_buscar', 'class' => 'well form-search')); ?>
	<script>
		$(document).ready(function(){
			$('.datahora').mask('99/99/9999 00:00');
		});
	</script>
	<label>Início: </label>
	<input type="text" name="datainicio" id="datainicio" value="<?php echo isset($datainicio) ? $datainicio: ''; ?>" class="span2 datahora" placeholder="dd/mm/yyyy hh:mm">
	<label>Fim: </label>
	<input type="text" name="datafim" id="datafim"  value="<?php echo isset($datafim) ? $datafim : ''; ?>" class="span2 datahora" placeholder="dd/mm/yyyy hh:mm">
	<button type="submit" name="buscar" class="btn btn-primary">Buscar</button>
	<?php echo Form::close(); ?>
	
	<?php $view = new View('reserva/lista'); $view->bind('periodos', $periodos); echo $view; ?>
	
</div>